/* ======使用注明=======
 //#import "SEGBottomToolView.h"
 //@property (nonatomic, strong)SEGBottomToolView *varBottomToolView; <#注释#>
 // 控件数据模型创建
 SEGBottomToolViewModel *data = [[SEGBottomToolViewModel alloc]init];
 // 控件内容布局计算
 SEGBottomToolViewLayout *layout = [[SEGBottomToolViewLayout alloc]initWithData:data type:SEGEnumBottomToolViewType_NO];
 // 内容布局填充到视图
 SEGBottomToolView *varBottomToolView = [[SEGBottomToolView alloc]initWithFrame:CGRectZero];
 //varBottomToolView.delegate = self;
 varBottomToolView.left = 0;
 varBottomToolView.top = 0;
 varBottomToolView.width = kScreenWidth;
 varBottomToolView.height = varBottomToolView.layout.totalHeight;
 [varBottomToolView setWithLayout:layout];
 
 */
#import <UIKit/UIKit.h>

#if __has_include(<Commom/SEGText.h>)
#import <Commom/SEGText.h>
#else
#import "SEGText.h"
#endif

#define kBottomToolViewHeight 44     // BottomToolView的高度

typedef NS_ENUM(NSUInteger, SEGEnumBottomToolViewType) {
    SEGEnumBottomToolViewType_NO = 0, /*默认*/
};

@protocol SEGprotocolBottomToolViewDelegate <NSObject>
@optional
-(void)SEGprotocollabel1:(SEGLabel*)sender;
-(void)SEGprotocollabel2:(SEGLabel*)sender;

@end

@interface SEGBottomToolViewModel : NSObject
@property (nonatomic, copy) NSString *text1; // 按钮一文字
@property (nonatomic, copy) NSString *text2; // 按钮一图片
@property (nonatomic, copy) NSString *imgName1; // 按钮一文字
@property (nonatomic, copy) NSString *imgName2; // 按钮二图片
@end

@interface SEGBottomToolViewLayout : NSObject
@property (nonatomic, assign,readonly) CGFloat totalHeight;//控件总高度
@property (nonatomic, assign,readonly) SEGEnumBottomToolViewType type;//控件类型
@property (nonatomic, strong,readonly)SEGBottomToolViewModel *data;
- (instancetype)initWithData:(SEGBottomToolViewModel *)data type:(SEGEnumBottomToolViewType)type;
-(void)segBottomToolViewLayout;

@property (nonatomic, assign) CGFloat label1Height;//label1 高度
@property (nonatomic, strong) SEGTextLayout *label1TextLayout;//label1 富文本布局

@property (nonatomic, assign) CGFloat label2Height;//label2 高度
@property (nonatomic, strong) SEGTextLayout *label2TextLayout;//label2 富文本布局

@end

@interface SEGBottomToolView : UIView
@property (nonatomic, strong,readonly)SEGBottomToolViewLayout *layout;
- (void)setWithLayout:(SEGBottomToolViewLayout *)layout;

@property (nonatomic, strong) SEGLabel *label1; // 按钮一
@property (nonatomic, strong) SEGLabel *label2; // 按钮二
@property (nonatomic, strong) UIView *line; // 分割线

@property (nonatomic, assign) id<SEGprotocolBottomToolViewDelegate> delegate;// 代理
@end
